<template>
	<view class="pages">
		<rich-text :nodes="dataInfo.content"></rich-text>
		<!-- <prize></prize> -->
		<tab-bar :current="1"></tab-bar>
	</view>
</template>

<script>
	// import prize from './components/prize';
	import tabBar from './components/tabbar';
	import {getCategoryList} from '@/api/vote';
	export default {
		components: {
			// prize,
			tabBar
		},
		data() {
			return {
				dataInfo: '',
			};
		},
		onShow() {
			this.getCategoryList();
		},
		methods: {
			getCategoryList() {
				getCategoryList().then(res => {
					if(res.data.length) {
						this.dataInfo = res.data[0];
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
.pages {
	padding-bottom: 140rpx;
}
.title {
	font-weight: 600;
	color: #51999d;
	font-size: 32rpx;
	margin-bottom: 50rpx;
	.iconfont {margin-right: 10rpx;}
}
</style>
